<template>
  <hsa-dialog v-model:visible="dialogVisible" title="展示" width="500">
    <!-- 对话框内容 -->
    <el-form :model="formData" :label-position="'top'" label-width="120px">
      <el-form-item label="缓存详情">
        <el-input type="textarea"  v-model="formData.detail"/>
      </el-form-item>
    </el-form>
    <!-- 对话框底部按钮 -->
    <template #footer>
      <span class="dialog-footer">
        <el-button @click="dialogVisible = false">取消</el-button>
        <el-button type="primary" @click="handleSubmit">确定</el-button>
      </span>
    </template>
  </hsa-dialog>
</template>

<script setup lang="ts">
import { ref, reactive } from "vue";
import type { HsaTableColumn } from "hsa-ui";
// 控制对话框的显示与隐藏
const dialogVisible = ref(false);
const formData=ref({
    detail:""
})
// 提交表单时的处理函数
const handleSubmit = () => {
  // 提交表单后关闭对话框
  dialogVisible.value = false;
};
const open = () => {
  dialogVisible.value = true;
};
defineExpose({
  open,
});
</script>
